package cn.wetcland.urban.framework.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class DriverRegisterDTO {

    @NotBlank(message = "请输入用户名")
    private String driverUsername;

    /**
     *
     */
    @NotBlank(message = "请输入密码")
    private String driverPassword;

    @NotBlank(message = "请输入确认密码")
    private String driverConfirmPassword;

    @NotNull(message = "请选择省份")
    public Long provinceId;

    @NotNull(message = "请选择城市")
    public Long cityId;

    @NotNull(message = "请选择区县")
    public Long districtId;

    @NotBlank(message = "请输入真实姓名")
    private String driverRealName;

    @NotBlank(message = "请输入联系电话")
    private String driverPhone;

    /**
     * 性别 0男 1女 2未知
     */
    @NotNull(message = "请选择性别")
    private Integer driverGender;

    /**
     * 身份证号
     */
    @NotBlank(message = "请输入身份证号码")
    private String driverIdcard;

    @NotBlank(message = "codekey不存在")
    public String codeKey;

    @NotBlank(message = "请输入验证码")
    public String code;

    /**
     * 身份证正面照片
     */
    @NotNull(message = "请上传身份证人像面照片")
    private Long driverIdcard0;

    /**
     * 身份证反面照片
     */
    @NotNull(message = "请上传身份证国徽面照片")
    private Long driverIdcard1;

    /**
     * 驾驶证照片
     */
    @NotNull(message = "请上传驾驶证照片")
    private Long driverLicense;

}
